<?php

namespace App\Admin\Actions\Good;

use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;

class DownLoad extends RowAction
{
    public $name = '下载';


    public function handle(Model $model)
    {
        return $this->response()->success('Success！')->download($model->path);
    }

}
